package org.mokusakura.domain;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class AlipayConfig {
    public final String charset = "UTF-8";
    public final String format = "json";
    public final String signType = "RSA2";
    @Value("${ali.privateKey}")
    private String appPrivateKey;
    @Value("${ali.publicKey}")
    private String appPublicKey;
    @Value("${ali.appId}")
    private String appId;
    @Value("${ali.returnUrl}")
    private String returnUrl;
    @Value("${ali.notifyUrl}")
    private String notifyUrl;
    @Value("${ali.serverUrl}")
    private String serverUrl;
    @Value("${ali.alipayPublicKey}")
    private String alipayPublicKey;

    public String getCharset() {
        return charset;
    }

    public String getFormat() {
        return format;
    }

    public String getSignType() {
        return signType;
    }

    public String getAppPrivateKey() {
        return appPrivateKey;
    }

    public AlipayConfig setAppPrivateKey(String appPrivateKey) {
        this.appPrivateKey = appPrivateKey;
        return this;
    }

    public String getAppPublicKey() {
        return appPublicKey;
    }

    public AlipayConfig setAppPublicKey(String appPublicKey) {
        this.appPublicKey = appPublicKey;
        return this;
    }

    public String getAppId() {
        return appId;
    }

    public AlipayConfig setAppId(String appId) {
        this.appId = appId;
        return this;
    }

    public String getReturnUrl() {
        return returnUrl;
    }

    public AlipayConfig setReturnUrl(String returnUrl) {
        this.returnUrl = returnUrl;
        return this;
    }

    public String getNotifyUrl() {
        return notifyUrl;
    }

    public AlipayConfig setNotifyUrl(String notifyUrl) {
        this.notifyUrl = notifyUrl;
        return this;
    }

    public String getServerUrl() {
        return serverUrl;
    }

    public AlipayConfig setServerUrl(String serverUrl) {
        this.serverUrl = serverUrl;
        return this;
    }

    public String getAlipayPublicKey() {
        return alipayPublicKey;
    }

    public AlipayConfig setAlipayPublicKey(String alipayPublicKey) {
        this.alipayPublicKey = alipayPublicKey;
        return this;
    }
}
